package com.my.service;

import com.my.pojo.ShopCart;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IShopCartService {
    public Page<ShopCart> showShopCart(Pageable pageable, Integer userId);

    public Integer addToShopCart(Integer userId, Integer goodsId, Integer num);

    public Integer updateShopCart(Integer cartId, Integer num, Integer userId);

    public Integer deleteFromShopCart(Integer cartId, Integer userId);

    public List<ShopCart> showShopCart(Integer userId);
}
